<html>
<head>
<script language="JavaScript" type="text/javascript">
	function checkform ( form )
	{
		if (form.quantity.value == "") {
			alert( "Please enter the number of items." );
			form.quantity.focus();
			return false ;
		}
		if (isNaN(form.quantity.value)) {
			alert( "Please enter a positive number." );
			form.quantity.focus();
			return false ;
		}
		if (form.quantity.value <= 0) {
			alert( "Please enter a positive number." );
			form.quantity.focus();
			return false ;
		}
		return true ;
	}
</script>
</head>
<?php
	$item = $_GET['item'];
?>

<body>
	<form action="modify_item_info.php" target="output_panel" method="post">
	<fieldset>
		<legend>Modify Item</legend>
		<table border="0">
			<tr>
				<td>Item Name: </td>
				<td><input type="text" size=20 name="item_name" value="<?php echo $item;?>" disabled="disabled"/></td>
			</tr>
			<tr>
				<td></td>
				<td><input type="submit" value="SEARCH" disabled="disabled"/></td>
			</tr>
		</table>
	</fieldset>
	</form>
	<form action="add_itemqty_info.php?item=<?php echo $item;?>" target="output_panel" method="post" onsubmit="return checkform(this);">
	<fieldset>
		<legend>Add to Quantity</legend>
		<table border="0">
			<tr>
				<td>Quantity: </td>
				<td><input type="text" size=20 name="quantity"/></td>
			</tr>
			<tr>
				<td></td>
				<td><input type="submit" value="ADD" /></td>
			</tr>
		</table>
	</fieldset>
	</form>
	<form action="modify_item.php" method="post">
		<input type="submit" value="Modify Another Item" />
	</form>
</body>
</html>